<?php
/**
 * 汎用データの削除関数
 *
 */

/* ==============================
    deleteData()
   ============================== */
if(!function_exists('deleteData')){
	function deleteData($sDataName,$sFolder=""){
		$sFolder = Empty($sFolder) ? "" : $sFolder . DIRECTORY_SEPARATOR;
		$sPath = DIR_DATA . $sFolder . $sDataName . ".dat";
		if(File_Exists($sPath)){
		    return unlink($sPath);
		}
		else{
		    return FALSE;
		}
	}
}

//deleteData()のエイリアス
if(!function_exists('unlinkData')){
	function unlinkData($sDataName,$sFolder=""){
    	return deleteData($sDataName,$sFolder);
    }
}

?>
